from django.conf.urls import url

from orders import views

urlpatterns = [
]



###############order　视图集路由

from rest_framework.routers import SimpleRouter

routers = SimpleRouter()



#
routers.register('orders',views.OrderViewset,base_name='order')

urlpatterns += routers.urls


# ok
routers.register('user/orders',views.OrderInfoView,base_name='Userorder')

urlpatterns += routers.urls

